<%@ page language="java" import="java.util.*" %><%@ page import="java.sql.*" %><%@ page import="javax.sql.*" %><%@ page import="javax.naming.*" %><%
   Context ctx = null;
   DataSource ds = null;
   Connection conn = null;
   Statement handle1=null;
   ResultSet rs1 = null;
   gs_rs rs=null;
   gs_handle handle=null;
   String strsql="";


   try{
   ctx = new InitialContext();  
		ds = (DataSource)ctx.lookup("java:comp/env/jdbc/datamart_db");  
		conn = ds.getConnection(); 
		conn.setAutoCommit(false); 
		handle1=conn.createStatement();
		 handle=new gs_handle(handle1,session);
   }catch(Exception e)
   {
   	out.write("<script language=vbscript>\n msgbox \"database error\"\n</script>\n");
   }
   try
	{	
	
%>